const Router = require('koa-router')
const LoginController = require('../controllers/login')

const router = new Router({
  prefix: '/api'
})
// 创建新用户的创建的接口
router.post('/login', LoginController.create)
// 创建获取用户信息的接口
router.get('/getUserMesage/:username', LoginController.detail)

router.post('/verifyMsg', LoginController.verifyMsg)

module.exports = router
